<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>CKplayer简单调用演示</title>
</head>
<body>
	<div id="a1"></div>
	<script type="text/javascript" src="ckplayer.js" charset="utf-8"></script>
	<script type="text/javascript">
		var flashvars={f:'test2.mp4',c:1,b:1};
		var params = { bgcolor : '#FFF', allowFullScreen : true, allowScriptAccess : 'always', wmode : 'transparent' };
		CKobject.embedSWF('ckplayer.swf', 'a1', 'ckplayer_a1', '600', '400', flashvars, params);
	</script>
	<!-- <script type="text/javascript" src="${ctxStatic}/ckplayer/6.7/ckplayer.js" charset="utf-8"></script>
	<script type="text/javascript">
	$(function(){
		var count = 0;
		$("embed").each(function(){ 
			count++;
			creatCKobject(count,$(this));	
		});
		$("video").each(function(){
			count++;
			creatCKobject(count,$(this));
		});
		function creatCKobject(index,$node){
			var id="video_box_"+index, $html=$('<div id="'+id+'" class="video_box"></div>'), $parentNode=$node.parent(),
				videoUrl = $node.attr("src"), ext = videoUrl.substr(videoUrl.lastIndexOf('.') + 1),
				node_width=$node.attr("width"), node_height=$node.attr("height"),
				imgUrl = videoUrl.substr(0, videoUrl.lastIndexOf('.') + 1) + 'jpg',
				flashvars = {f:videoUrl, c:0, p:2, i:imgUrl, h:4};
			$parentNode.empty().replaceWith($html);
			CKobject.embed("${ctxStatic}/ckplayer/6.7/ckplayer.swf",id,"ckplayer_"+id,node_width,node_height,false,flashvars,videoUrl+"->video/"+ext,{bgcolor:"#FFF",allowFullScreen:true,allowScriptAccess:"always",wmode:"transparent"});
		};
	})
	</script> -->
</body>
</html>
